//
//  ClientIpUpdator.swift
//  uwantgoeasy
//
//  Created by 冯传宝 on 12/17/15.
//  Copyright © 2015 uwantsoft. All rights reserved.
//

import Foundation

class ClientIpUpdator{
    private let UPDATE_URL:String = "http://192.168.31.218:9000/goeasy/updateip"
//    private let UPDATE_URL:String = "https://test.goeasy.io:9000/goeasy/updateip"
    
    func update(sid: String){
        let url = NSURL(string: UPDATE_URL+"?sid="+sid)
        let request = NSURLRequest(URL: url!)
        NSURLConnection.sendAsynchronousRequest(request, queue: NSOperationQueue.mainQueue()) {(response, data, error) in}
    }
}